using UnityEngine;
using System.Collections;


public class UIButtonPanelDefault : MonoBehaviour
{
    public string mCurrentPanelName;
    public string mDestinationPanelName;
    private GameObject mCurrentPanel;
    private GameObject mDestinationPanel;

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    { }

    void OnClick()
    {
        mCurrentPanel = GameObject.Find(mCurrentPanelName);
        mDestinationPanel = GameObject.Find(mDestinationPanelName);

        NGUITools.SetActive(mCurrentPanel, false);
        NGUITools.SetActive(mDestinationPanel, true);
    }
}
